package com.three.utils;

import com.three.Main;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import lombok.Data;

import java.io.IOException;

@Data
public class MyPageBuilder<T> {

    private Scene scene;
    private FXMLLoader fxmlLoader;
    private T controller;


    public MyPageBuilder(String url) throws IOException {
        fxmlLoader = new FXMLLoader(Main.class.getResource(url));
        this.scene = new Scene(fxmlLoader.load());
        this.controller = fxmlLoader.getController();
    }
}
